import java.util.Arrays;
import java.util.Scanner;

//题目：对10个数进行排序
public class Test28 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        System.out.println("请输入十个数");
        int[] arr = new int[10];
        for (int i = 0; i < 10; i++) {
            arr[i] = console.nextInt();
        }
        Arrays.sort(arr);
        for (int i = 0; i < 10; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
